package com.cci.kangdao.escalation.dao;

import com.cci.kangdao.escalation.model.EscalationReasonT;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EscalationReasonTDao {
    int deleteByPrimaryKey(Long id);

    int insert(EscalationReasonT record);

    int insertSelective(EscalationReasonT record);

    EscalationReasonT selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(EscalationReasonT record);

    int updateByPrimaryKey(EscalationReasonT record);

    List<EscalationReasonT> getEscalationReasonListByOrderId(@Param("orderId") Long orderId);

    EscalationReasonT getLastReasonByOrderId(@Param("orderId") Long orderId);

    List<EscalationReasonT>  getEscalationReasonByOrderId(@Param("orderId") Long orderId,@Param("type") Integer type);

    EscalationReasonT  getEscalationReasonByOrderIdAndType(@Param("orderId") Long orderId);
}